package com.kykj.kykj.service.impl;

import com.kykj.kykj.dao.ArticlesNextReplyDao;
import com.kykj.kykj.entity.ArticlesNextReplyEntity;
import com.kykj.kykj.service.ArticlesNextReplyService;
import com.kykj.kykj.vo.ArticlesNextReplyVo;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ArticlesNextReplyServiceImpl implements ArticlesNextReplyService {
    @Resource
    ArticlesNextReplyDao articlesNextReplyDao;
    @Override
    public List<ArticlesNextReplyEntity> getNextReplyList(int replyId) {
        return articlesNextReplyDao.getNextReplyList(replyId);
    }

    @Override
    public int addNextReply(ArticlesNextReplyVo articlesNextReplyVo) {
        return articlesNextReplyDao.addNextReply(articlesNextReplyVo);
    }

    @Override
    public int delNextReply(int id, int userId) {
        return articlesNextReplyDao.delNextReply(id, userId);
    }

    @Override
    public int upNextReply(ArticlesNextReplyVo articlesNextReplyVo) {
        return articlesNextReplyDao.upNextReply(articlesNextReplyVo);
    }
}
